Optimal. Leaf size=166 \[ \frac {2 \left (c d^2-b d e+a e^2\right )^2 (d+e x)^{3/2}}{3 e^5}-\frac {4 (2 c d-b e) \left (c d^2-b d e+a e^2\right ) (d+e x)^{5/2}}{5 e^5}+\frac {2 \left (6 c^2 d^2+b^2 e^2-2 c e (3 b d-a e)\right ) (d+e x)^{7/2}}{7 e^5}-\frac {4 c (2 c d-b e) (d+e x)^{9/2}}{9 e^5}+\frac {2 c^2 (d+e x)^{11/2}}{11 e^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 166, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {712}
\begin {gather*} \frac {2 (d+e x)^{7/2} \left (-2 c e (3 b d-a e)+b^2 e^2+6 c^2 d^2\right )}{7 e^5}-\frac {4 (d+e x)^{5/2} (2 c d-b e) \left (a e^2-b d e+c d^2\right )}{5 e^5}+\frac {2 (d+e x)^{3/2} \left (a e^2-b d e+c d^2\right )^2}{3 e^5}-\frac {4 c (d+e x)^{9/2} (2 c d-b e)}{9 e^5}+\frac {2 c^2 (d+e x)^{11/2}}{11 e^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 712
Rubi steps
\begin {align*} \int \sqrt {d+e x} \left (a+b x+c x^2\right )^2 \, dx &=\int \left (\frac {\left (c d^2-b d e+a e^2\right )^2 \sqrt {d+e x}}{e^4}+\frac {2 (-2 c d+b e) \left (c d^2-b d e+a e^2\right ) (d+e x)^{3/2}}{e^4}+\frac {\left (6 c^2 d^2+b^2 e^2-2 c e (3 b d-a e)\right ) (d+e x)^{5/2}}{e^4}-\frac {2 c (2 c d-b e) (d+e x)^{7/2}}{e^4}+\frac {c^2 (d+e x)^{9/2}}{e^4}\right ) \, dx\\ &=\frac {2 \left (c d^2-b d e+a e^2\right )^2 (d+e x)^{3/2}}{3 e^5}-\frac {4 (2 c d-b e) \left (c d^2-b d e+a e^2\right ) (d+e x)^{5/2}}{5 e^5}+\frac {2 \left (6 c^2 d^2+b^2 e^2-2 c e (3 b d-a e)\right ) (d+e x)^{7/2}}{7 e^5}-\frac {4 c (2 c d-b e) (d+e x)^{9/2}}{9 e^5}+\frac {2 c^2 (d+e x)^{11/2}}{11 e^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 172, normalized size = 1.04 \begin {gather*} \frac {2 (d+e x)^{3/2} \left (c^2 \left (128 d^4-192 d^3 e x+240 d^2 e^2 x^2-280 d e^3 x^3+315 e^4 x^4\right )+33 e^2 \left (35 a^2 e^2+14 a b e (-2 d+3 e x)+b^2 \left (8 d^2-12 d e x+15 e^2 x^2\right )\right )-22 c e \left (-3 a e \left (8 d^2-12 d e x+15 e^2 x^2\right )+b \left (16 d^3-24 d^2 e x+30 d e^2 x^2-35 e^3 x^3\right )\right )\right )}{3465 e^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 136, normalized size = 0.82
method | result | size |
derivativedivides | \(\frac {\frac {2 c^{2} \left (e x +d \right )^{\frac {11}{2}}}{11}+\frac {4 c \left (b e -2 c d \right ) \left (e x +d \right )^{\frac {9}{2}}}{9}+\frac {2 \left (2 \left (e^{2} a -b d e +c \,d^{2}\right ) c +\left (b e -2 c d \right )^{2}\right ) \left (e x +d \right )^{\frac {7}{2}}}{7}+\frac {4 \left (e^{2} a -b d e +c \,d^{2}\right ) \left (b e -2 c d \right ) \left (e x +d \right )^{\frac {5}{2}}}{5}+\frac {2 \left (e^{2} a -b d e +c \,d^{2}\right )^{2} \left (e x +d \right )^{\frac {3}{2}}}{3}}{e^{5}}\) | \(136\) |
default | \(\frac {\frac {2 c^{2} \left (e x +d \right )^{\frac {11}{2}}}{11}+\frac {4 c \left (b e -2 c d \right ) \left (e x +d \right )^{\frac {9}{2}}}{9}+\frac {2 \left (2 \left (e^{2} a -b d e +c \,d^{2}\right ) c +\left (b e -2 c d \right )^{2}\right ) \left (e x +d \right )^{\frac {7}{2}}}{7}+\frac {4 \left (e^{2} a -b d e +c \,d^{2}\right ) \left (b e -2 c d \right ) \left (e x +d \right )^{\frac {5}{2}}}{5}+\frac {2 \left (e^{2} a -b d e +c \,d^{2}\right )^{2} \left (e x +d \right )^{\frac {3}{2}}}{3}}{e^{5}}\) | \(136\) |
gosper | \(\frac {2 \left (e x +d \right )^{\frac {3}{2}} \left (315 c^{2} x^{4} e^{4}+770 b c \,e^{4} x^{3}-280 c^{2} d \,e^{3} x^{3}+990 a c \,e^{4} x^{2}+495 b^{2} e^{4} x^{2}-660 b c d \,e^{3} x^{2}+240 c^{2} d^{2} e^{2} x^{2}+1386 a b \,e^{4} x -792 a c d \,e^{3} x -396 b^{2} d \,e^{3} x +528 b c \,d^{2} e^{2} x -192 c^{2} d^{3} e x +1155 a^{2} e^{4}-924 d \,e^{3} a b +528 a c \,d^{2} e^{2}+264 b^{2} d^{2} e^{2}-352 d^{3} e b c +128 c^{2} d^{4}\right )}{3465 e^{5}}\) | \(194\) |
trager | \(\frac {2 \left (315 c^{2} e^{5} x^{5}+770 b c \,e^{5} x^{4}+35 c^{2} d \,e^{4} x^{4}+990 a c \,e^{5} x^{3}+495 b^{2} e^{5} x^{3}+110 b c d \,e^{4} x^{3}-40 c^{2} d^{2} e^{3} x^{3}+1386 a b \,e^{5} x^{2}+198 a c d \,e^{4} x^{2}+99 b^{2} d \,e^{4} x^{2}-132 b c \,d^{2} e^{3} x^{2}+48 c^{2} d^{3} e^{2} x^{2}+1155 a^{2} e^{5} x +462 a b d \,e^{4} x -264 a c \,e^{3} d^{2} x -132 b^{2} d^{2} e^{3} x +176 b c \,d^{3} e^{2} x -64 c^{2} d^{4} e x +1155 a^{2} d \,e^{4}-924 a b \,d^{2} e^{3}+528 a c \,d^{3} e^{2}+264 b^{2} d^{3} e^{2}-352 b c \,d^{4} e +128 c^{2} d^{5}\right ) \sqrt {e x +d}}{3465 e^{5}}\) | \(271\) |
risch | \(\frac {2 \left (315 c^{2} e^{5} x^{5}+770 b c \,e^{5} x^{4}+35 c^{2} d \,e^{4} x^{4}+990 a c \,e^{5} x^{3}+495 b^{2} e^{5} x^{3}+110 b c d \,e^{4} x^{3}-40 c^{2} d^{2} e^{3} x^{3}+1386 a b \,e^{5} x^{2}+198 a c d \,e^{4} x^{2}+99 b^{2} d \,e^{4} x^{2}-132 b c \,d^{2} e^{3} x^{2}+48 c^{2} d^{3} e^{2} x^{2}+1155 a^{2} e^{5} x +462 a b d \,e^{4} x -264 a c \,e^{3} d^{2} x -132 b^{2} d^{2} e^{3} x +176 b c \,d^{3} e^{2} x -64 c^{2} d^{4} e x +1155 a^{2} d \,e^{4}-924 a b \,d^{2} e^{3}+528 a c \,d^{3} e^{2}+264 b^{2} d^{3} e^{2}-352 b c \,d^{4} e +128 c^{2} d^{5}\right ) \sqrt {e x +d}}{3465 e^{5}}\) | \(271\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 185, normalized size = 1.11 \begin {gather*} \frac {2}{3465} \, {\left (315 \, {\left (x e + d\right )}^{\frac {11}{2}} c^{2} - 770 \, {\left (2 \, c^{2} d - b c e\right )} {\left (x e + d\right )}^{\frac {9}{2}} + 495 \, {\left (6 \, c^{2} d^{2} - 6 \, b c d e + b^{2} e^{2} + 2 \, a c e^{2}\right )} {\left (x e + d\right )}^{\frac {7}{2}} - 1386 \, {\left (2 \, c^{2} d^{3} - 3 \, b c d^{2} e - a b e^{3} + {\left (b^{2} e^{2} + 2 \, a c e^{2}\right )} d\right )} {\left (x e + d\right )}^{\frac {5}{2}} + 1155 \, {\left (c^{2} d^{4} - 2 \, b c d^{3} e - 2 \, a b d e^{3} + {\left (b^{2} e^{2} + 2 \, a c e^{2}\right )} d^{2} + a^{2} e^{4}\right )} {\left (x e + d\right )}^{\frac {3}{2}}\right )} e^{\left (-5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.61, size = 218, normalized size = 1.31 \begin {gather*} \frac {2}{3465} \, {\left (128 \, c^{2} d^{5} + {\left (315 \, c^{2} x^{5} + 770 \, b c x^{4} + 1386 \, a b x^{2} + 495 \, {\left (b^{2} + 2 \, a c\right )} x^{3} + 1155 \, a^{2} x\right )} e^{5} + {\left (35 \, c^{2} d x^{4} + 110 \, b c d x^{3} + 462 \, a b d x + 99 \, {\left (b^{2} + 2 \, a c\right )} d x^{2} + 1155 \, a^{2} d\right )} e^{4} - 4 \, {\left (10 \, c^{2} d^{2} x^{3} + 33 \, b c d^{2} x^{2} + 231 \, a b d^{2} + 33 \, {\left (b^{2} + 2 \, a c\right )} d^{2} x\right )} e^{3} + 8 \, {\left (6 \, c^{2} d^{3} x^{2} + 22 \, b c d^{3} x + 33 \, {\left (b^{2} + 2 \, a c\right )} d^{3}\right )} e^{2} - 32 \, {\left (2 \, c^{2} d^{4} x + 11 \, b c d^{4}\right )} e\right )} \sqrt {x e + d} e^{\left (-5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.57, size = 230, normalized size = 1.39 \begin {gather*} \frac {2 \left (\frac {c^{2} \left (d + e x\right )^{\frac {11}{2}}}{11 e^{4}} + \frac {\left (d + e x\right )^{\frac {9}{2}} \cdot \left (2 b c e - 4 c^{2} d\right )}{9 e^{4}} + \frac {\left (d + e x\right )^{\frac {7}{2}} \cdot \left (2 a c e^{2} + b^{2} e^{2} - 6 b c d e + 6 c^{2} d^{2}\right )}{7 e^{4}} + \frac {\left (d + e x\right )^{\frac {5}{2}} \cdot \left (2 a b e^{3} - 4 a c d e^{2} - 2 b^{2} d e^{2} + 6 b c d^{2} e - 4 c^{2} d^{3}\right )}{5 e^{4}} + \frac {\left (d + e x\right )^{\frac {3}{2}} \left (a^{2} e^{4} - 2 a b d e^{3} + 2 a c d^{2} e^{2} + b^{2} d^{2} e^{2} - 2 b c d^{3} e + c^{2} d^{4}\right )}{3 e^{4}}\right )}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 578 vs.
\(2 (149) = 298\).
time = 1.37, size = 578, normalized size = 3.48 \begin {gather*} \frac {2}{3465} \, {\left (2310 \, {\left ({\left (x e + d\right )}^{\frac {3}{2}} - 3 \, \sqrt {x e + d} d\right )} a b d e^{\left (-1\right )} + 231 \, {\left (3 \, {\left (x e + d\right )}^{\frac {5}{2}} - 10 \, {\left (x e + d\right )}^{\frac {3}{2}} d + 15 \, \sqrt {x e + d} d^{2}\right )} b^{2} d e^{\left (-2\right )} + 462 \, {\left (3 \, {\left (x e + d\right )}^{\frac {5}{2}} - 10 \, {\left (x e + d\right )}^{\frac {3}{2}} d + 15 \, \sqrt {x e + d} d^{2}\right )} a c d e^{\left (-2\right )} + 198 \, {\left (5 \, {\left (x e + d\right )}^{\frac {7}{2}} - 21 \, {\left (x e + d\right )}^{\frac {5}{2}} d + 35 \, {\left (x e + d\right )}^{\frac {3}{2}} d^{2} - 35 \, \sqrt {x e + d} d^{3}\right )} b c d e^{\left (-3\right )} + 11 \, {\left (35 \, {\left (x e + d\right )}^{\frac {9}{2}} - 180 \, {\left (x e + d\right )}^{\frac {7}{2}} d + 378 \, {\left (x e + d\right )}^{\frac {5}{2}} d^{2} - 420 \, {\left (x e + d\right )}^{\frac {3}{2}} d^{3} + 315 \, \sqrt {x e + d} d^{4}\right )} c^{2} d e^{\left (-4\right )} + 462 \, {\left (3 \, {\left (x e + d\right )}^{\frac {5}{2}} - 10 \, {\left (x e + d\right )}^{\frac {3}{2}} d + 15 \, \sqrt {x e + d} d^{2}\right )} a b e^{\left (-1\right )} + 99 \, {\left (5 \, {\left (x e + d\right )}^{\frac {7}{2}} - 21 \, {\left (x e + d\right )}^{\frac {5}{2}} d + 35 \, {\left (x e + d\right )}^{\frac {3}{2}} d^{2} - 35 \, \sqrt {x e + d} d^{3}\right )} b^{2} e^{\left (-2\right )} + 198 \, {\left (5 \, {\left (x e + d\right )}^{\frac {7}{2}} - 21 \, {\left (x e + d\right )}^{\frac {5}{2}} d + 35 \, {\left (x e + d\right )}^{\frac {3}{2}} d^{2} - 35 \, \sqrt {x e + d} d^{3}\right )} a c e^{\left (-2\right )} + 22 \, {\left (35 \, {\left (x e + d\right )}^{\frac {9}{2}} - 180 \, {\left (x e + d\right )}^{\frac {7}{2}} d + 378 \, {\left (x e + d\right )}^{\frac {5}{2}} d^{2} - 420 \, {\left (x e + d\right )}^{\frac {3}{2}} d^{3} + 315 \, \sqrt {x e + d} d^{4}\right )} b c e^{\left (-3\right )} + 5 \, {\left (63 \, {\left (x e + d\right )}^{\frac {11}{2}} - 385 \, {\left (x e + d\right )}^{\frac {9}{2}} d + 990 \, {\left (x e + d\right )}^{\frac {7}{2}} d^{2} - 1386 \, {\left (x e + d\right )}^{\frac {5}{2}} d^{3} + 1155 \, {\left (x e + d\right )}^{\frac {3}{2}} d^{4} - 693 \, \sqrt {x e + d} d^{5}\right )} c^{2} e^{\left (-4\right )} + 3465 \, \sqrt {x e + d} a^{2} d + 1155 \, {\left ({\left (x e + d\right )}^{\frac {3}{2}} - 3 \, \sqrt {x e + d} d\right )} a^{2}\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 148, normalized size = 0.89 \begin {gather*} \frac {2\,c^2\,{\left (d+e\,x\right )}^{11/2}}{11\,e^5}+\frac {{\left (d+e\,x\right )}^{7/2}\,\left (2\,b^2\,e^2-12\,b\,c\,d\,e+12\,c^2\,d^2+4\,a\,c\,e^2\right )}{7\,e^5}+\frac {2\,{\left (d+e\,x\right )}^{3/2}\,{\left (c\,d^2-b\,d\,e+a\,e^2\right )}^2}{3\,e^5}-\frac {\left (8\,c^2\,d-4\,b\,c\,e\right )\,{\left (d+e\,x\right )}^{9/2}}{9\,e^5}+\frac {4\,\left (b\,e-2\,c\,d\right )\,{\left (d+e\,x\right )}^{5/2}\,\left (c\,d^2-b\,d\,e+a\,e^2\right )}{5\,e^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________